diff options
Diffstat (limited to 'tests/cassettes/test_media_post[False].yaml')
-rw-r--r-- | tests/cassettes/test_media_post[False].yaml | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml index 6eabb79..accb210 100644 --- a/tests/cassettes/test_media_post[False].yaml +++ b/tests/cassettes/test_media_post[False].yaml | |||
@@ -1,13 +1,13 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: !!binary | | 3 | body: !!binary | |
4 | LS0zMmQzODhjMTIyYmE0MTdhYjkyNTRlZGI5NzhmODc0Zg0KQ29udGVudC1EaXNwb3NpdGlvbjog | 4 | LS0yOTU2NmMzZjBjY2E0NTdjYWJlMDkzMjFjZjY3ZTRmNg0KQ29udGVudC1EaXNwb3NpdGlvbjog |
5 | Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u | 5 | Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u |
6 | eSB3YWxrDQotLTMyZDM4OGMxMjJiYTQxN2FiOTI1NGVkYjk3OGY4NzRmDQpDb250ZW50LURpc3Bv | 6 | eSB3YWxrDQotLTI5NTY2YzNmMGNjYTQ1N2NhYmUwOTMyMWNmNjdlNGY2DQpDb250ZW50LURpc3Bv |
7 | c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS0zMmQzODhjMTIy | 7 | c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS0yOTU2NmMzZjBj |
8 | YmE0MTdhYjkyNTRlZGI5NzhmODc0Zg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu | 8 | Y2E0NTdjYWJlMDkzMjFjZjY3ZTRmNg0K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gU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV | 944 | xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV |
945 | 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp | 945 | 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp |
946 | UqD/2Q0KLS0zMmQzODhjMTIyYmE0MTdhYjkyNTRlZGI5NzhmODc0Zi0tDQo= | 946 | UqD/2Q0KLS0yOTU2NmMzZjBjY2E0NTdjYWJlMDkzMjFjZjY3ZTRmNi0tDQo= |
947 | headers: | 947 | headers: |
948 | Accept: ['*/*'] | 948 | Accept: ['*/*'] |
949 | Accept-Encoding: ['gzip, deflate'] | 949 | Accept-Encoding: ['gzip, deflate'] |
950 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 950 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
951 | Connection: [keep-alive] | 951 | Connection: [keep-alive] |
952 | Content-Length: ['53738'] | 952 | Content-Length: ['53738'] |
953 | Content-Type: [multipart/form-data; boundary=32d388c122ba417ab9254edb978f874f] | 953 | Content-Type: [multipart/form-data; boundary=29566c3f0cca457cabe09321cf67e4f6] |
954 | User-Agent: [python-requests/2.18.4] | 954 | User-Agent: [python-requests/2.18.4] |
955 | method: POST | 955 | method: POST |
956 | uri: http://localhost:3000/api/v1/media | 956 | uri: http://localhost:3000/api/v1/media |
957 | response: | 957 | response: |
958 | body: {string: '{"id":"37","type":"image","url":"http://localhost/system/media_attachments/files/000/000/037/original/16ec5d2b4dad975d.jpeg?1570914052","preview_url":"http://localhost/system/media_attachments/files/000/000/037/small/16ec5d2b4dad975d.jpeg?1570914052","remote_url":null,"text_url":"http://localhost/media/5e9Sjvt8tWMNnQsBbdI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | 958 | body: {string: '{"id":"1","type":"image","url":"http://localhost/system/media_attachments/files/000/000/001/original/abf96798c1e8f2aa.jpeg?1582399727","preview_url":"http://localhost/system/media_attachments/files/000/000/001/small/abf96798c1e8f2aa.jpeg?1582399727","remote_url":null,"text_url":"http://localhost/media/zwW0A1wYGnqGywHjPho","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
959 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}'} | 959 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}'} |
960 | headers: | 960 | headers: |
961 | Cache-Control: ['no-cache, no-store'] | 961 | Cache-Control: ['no-cache, no-store'] |
@@ -967,27 +967,27 @@ interactions: | |||
967 | X-Download-Options: [noopen] | 967 | X-Download-Options: [noopen] |
968 | X-Frame-Options: [SAMEORIGIN] | 968 | X-Frame-Options: [SAMEORIGIN] |
969 | X-Permitted-Cross-Domain-Policies: [none] | 969 | X-Permitted-Cross-Domain-Policies: [none] |
970 | X-Request-Id: [f7528fe3-4434-4bc9-ad1c-144f0163cbdd] | 970 | X-Request-Id: [faa2c7cc-37cd-4499-8ace-5dca787d7384] |
971 | X-Runtime: ['0.308578'] | 971 | X-Runtime: ['0.448488'] |
972 | X-XSS-Protection: [1; mode=block] | 972 | X-XSS-Protection: [1; mode=block] |
973 | content-length: ['591'] | 973 | content-length: ['590'] |
974 | status: {code: 200, message: OK} | 974 | status: {code: 200, message: OK} |
975 | - request: | 975 | - request: |
976 | body: status=LOL+check+this+out&media_ids%5B%5D=37 | 976 | body: status=LOL+check+this+out&media_ids%5B%5D=1 |
977 | headers: | 977 | headers: |
978 | Accept: ['*/*'] | 978 | Accept: ['*/*'] |
979 | Accept-Encoding: ['gzip, deflate'] | 979 | Accept-Encoding: ['gzip, deflate'] |
980 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 980 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
981 | Connection: [keep-alive] | 981 | Connection: [keep-alive] |
982 | Content-Length: ['44'] | 982 | Content-Length: ['43'] |
983 | Content-Type: [application/x-www-form-urlencoded] | 983 | Content-Type: [application/x-www-form-urlencoded] |
984 | User-Agent: [python-requests/2.18.4] | 984 | User-Agent: [python-requests/2.18.4] |
985 | method: POST | 985 | method: POST |
986 | uri: http://localhost:3000/api/v1/statuses | 986 | uri: http://localhost:3000/api/v1/statuses |
987 | response: | 987 | response: |
988 | body: {string: '{"id":"102951423337500114","created_at":"2019-10-12T21:00:52.406Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102951423337500114","url":"http://localhost/@mastodonpy_test/102951423337500114","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eLOL | 988 | body: {string: '{"id":"103704148548559582","created_at":"2020-02-22T19:28:47.627Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/103704148548559582","url":"http://localhost/@mastodonpy_test/103704148548559582","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eLOL |
989 | check this out\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 989 | check this out\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py |
990 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2019-10-12T21:00:52.418Z","emojis":[],"fields":[]},"media_attachments":[{"id":"37","type":"image","url":"http://localhost/system/media_attachments/files/000/000/037/original/16ec5d2b4dad975d.jpeg?1570914052","preview_url":"http://localhost/system/media_attachments/files/000/000/037/small/16ec5d2b4dad975d.jpeg?1570914052","remote_url":null,"text_url":"http://localhost/media/5e9Sjvt8tWMNnQsBbdI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | 990 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[{"id":"1","type":"image","url":"http://localhost/system/media_attachments/files/000/000/001/original/abf96798c1e8f2aa.jpeg?1582399727","preview_url":"http://localhost/system/media_attachments/files/000/000/001/small/abf96798c1e8f2aa.jpeg?1582399727","remote_url":null,"text_url":"http://localhost/media/zwW0A1wYGnqGywHjPho","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
991 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 991 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
992 | headers: | 992 | headers: |
993 | Cache-Control: ['no-cache, no-store'] | 993 | Cache-Control: ['no-cache, no-store'] |
@@ -999,10 +999,10 @@ interactions: | |||
999 | X-Download-Options: [noopen] | 999 | X-Download-Options: [noopen] |
1000 | X-Frame-Options: [SAMEORIGIN] | 1000 | X-Frame-Options: [SAMEORIGIN] |
1001 | X-Permitted-Cross-Domain-Policies: [none] | 1001 | X-Permitted-Cross-Domain-Policies: [none] |
1002 | X-Request-Id: [d79ecd27-b772-4d60-9851-055eefd1f486] | 1002 | X-Request-Id: [e580b65d-3f70-40c9-bb7b-8d129a403062] |
1003 | X-Runtime: ['0.190370'] | 1003 | X-Runtime: ['0.208214'] |
1004 | X-XSS-Protection: [1; mode=block] | 1004 | X-XSS-Protection: [1; mode=block] |
1005 | content-length: ['1884'] | 1005 | content-length: ['1923'] |
1006 | status: {code: 200, message: OK} | 1006 | status: {code: 200, message: OK} |
1007 | - request: | 1007 | - request: |
1008 | body: null | 1008 | body: null |
@@ -1014,10 +1014,10 @@ interactions: | |||
1014 | Content-Length: ['0'] | 1014 | Content-Length: ['0'] |
1015 | User-Agent: [python-requests/2.18.4] | 1015 | User-Agent: [python-requests/2.18.4] |
1016 | method: DELETE | 1016 | method: DELETE |
1017 | uri: http://localhost:3000/api/v1/statuses/102951423337500114 | 1017 | uri: http://localhost:3000/api/v1/statuses/103704148548559582 |
1018 | response: | 1018 | response: |
1019 | body: {string: '{"id":"102951423337500114","created_at":"2019-10-12T21:00:52.406Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102951423337500114","url":"http://localhost/@mastodonpy_test/102951423337500114","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"LOL | 1019 | body: {string: '{"id":"103704148548559582","created_at":"2020-02-22T19:28:47.627Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/103704148548559582","url":"http://localhost/@mastodonpy_test/103704148548559582","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"LOL |
1020 | check this out","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2019-10-12T21:00:52.418Z","emojis":[],"fields":[]},"media_attachments":[{"id":"37","type":"image","url":"http://localhost/system/media_attachments/files/000/000/037/original/16ec5d2b4dad975d.jpeg?1570914052","preview_url":"http://localhost/system/media_attachments/files/000/000/037/small/16ec5d2b4dad975d.jpeg?1570914052","remote_url":null,"text_url":"http://localhost/media/5e9Sjvt8tWMNnQsBbdI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | 1020 | check this out","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[{"id":"1","type":"image","url":"http://localhost/system/media_attachments/files/000/000/001/original/abf96798c1e8f2aa.jpeg?1582399727","preview_url":"http://localhost/system/media_attachments/files/000/000/001/small/abf96798c1e8f2aa.jpeg?1582399727","remote_url":null,"text_url":"http://localhost/media/zwW0A1wYGnqGywHjPho","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
1021 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 1021 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
1022 | headers: | 1022 | headers: |
1023 | Cache-Control: ['no-cache, no-store'] | 1023 | Cache-Control: ['no-cache, no-store'] |
@@ -1029,9 +1029,9 @@ interactions: | |||
1029 | X-Download-Options: [noopen] | 1029 | X-Download-Options: [noopen] |
1030 | X-Frame-Options: [SAMEORIGIN] | 1030 | X-Frame-Options: [SAMEORIGIN] |
1031 | X-Permitted-Cross-Domain-Policies: [none] | 1031 | X-Permitted-Cross-Domain-Policies: [none] |
1032 | X-Request-Id: [60307db7-be9b-42ae-924f-a48921347676] | 1032 | X-Request-Id: [b7732fd5-3285-4855-b600-9933a0bfb45b] |
1033 | X-Runtime: ['0.111105'] | 1033 | X-Runtime: ['0.188419'] |
1034 | X-XSS-Protection: [1; mode=block] | 1034 | X-XSS-Protection: [1; mode=block] |
1035 | content-length: ['1854'] | 1035 | content-length: ['1893'] |
1036 | status: {code: 200, message: OK} | 1036 | status: {code: 200, message: OK} |
1037 | version: 1 | 1037 | version: 1 |